/*
 * libDisco.h
 *
 *  Created on: 22/04/2012
 *      Author: utnso
 */

#ifndef LIBDISCO_H_
#define LIBDISCO_H_

//INCLUDES
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <pthread.h>

//TIPOS
typedef struct datosDisco_t{
	void* ptrDisco;
	size_t tamanio;
}datosDisco_t;

//FUNCIONES
uint8_t inicializarDisco(char*);

char* leerBytes(off_t, size_t);

void escribirBytes(off_t, size_t, char*);

void finalizarDisco(void);

#endif /* LIBDISCO_H_ */
